# 猜数字的游戏

import random

result = random.randint(1, 100)
count = 5
while count >= 0:
    a = input("请输入数字(1-100)")
    a = int(a)
    if a == result:
        print("恭喜你，猜对了")
        break
    elif a < result:
        print("你猜的数字小了")
    elif a > result:
        print("你猜的数字大了")
    count = count - 1
